# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#   
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Major.create(:name => 'Daley', :city => cities.first)

# Populate Partners Data
Partner.create([
    {:organizational_name => 'Fondazione Bruno Kessler',:short_name => 'FBK',:country => 'ITALY',:created_at => 'now()'},
    {:organizational_name => 'Center for Research and Telecommunication Experimentation for Networked Communities',:short_name => 'CREATE-NET',:country => 'ITALY',:created_at => 'now()'},
    {:organizational_name => 'VesFold University College',:short_name => 'VUC',:country => 'NORWAY',:created_at => 'now()'},
    {:organizational_name => 'Addis Ababa University',:short_name => 'AAU-CS',:country => 'ETHIOPIA',:created_at => 'now()'},
    {:organizational_name => 'Unidade Técnica de Implementação da Política de Informática',:short_name => 'UTICT',:country => 'MOZAMBIQUE',:created_at => 'now()'},
    {:organizational_name => 'American International Univeristy Bangladesh',:short_name => 'AIUB',:country => 'BANGLADESH',:created_at => 'now()'}
  ])

# Populate Peoples Data
fbk_id=Partner.find_by_short_name('FBK')
create_net_id=Partner.find_by_short_name('CREATE-NET')

People.create([
    {:name => 'Adolfo Villafiorita',:address => 'SOME WHERE IN TRENTO',:contact => 'abc@fbk.eu',:partner_id =>fbk_id.id },
    {:name => 'Komminist Weldemariam',:address => 'SOME WHERE IN TRENTO',:contact => 'bcd@fbk.eu',:partner_id =>fbk_id.id },
    {:name => 'Kamrul Hassan',:address => 'VIA BORINO 63', :contact => 'kamrul3d@gmail.com',:partner_id =>fbk_id.id },
    {:name => 'Eliazer Mbaeva',:address => 'SOME WHERE IN TRENTO',:contact => 'eli@eli',:partner_id =>fbk_id.id },
    {:name => 'Aaron Ciaghi',:address => 'SOME WHERE IN TRENTO',:contact => 'cde@fbk.eu',:partner_id =>fbk_id.id },
    {:name => 'Ilse Grau',:address => 'SOME WHERE IN TRENTO',:contact => 'def@fbk.eu', :partner_id =>fbk_id.id},
    {:name => 'Rashedul Hassan',:address => 'SOME WHERE IN TRENTO',:contact => 'efg@fbk.eu', :partner_id =>fbk_id.id},
    {:name => 'Create Guy',:address => 'SOME WHERE IN TRENTO',:contact => 'efg@create-net.org', :partner_id =>create_net_id.id}
  ])

# Populate Projects Data
Project.create([
    {:name => 'Project Name 1',:description => 'Project long description',:create_by => 'User ABC1'},
    {:name => 'Project Name 2',:description => 'Project long description',:create_by => 'User ABC2'},
    {:name => 'Project Name 3',:description => 'Project long description',:create_by => 'User ABC3'}
  ])